package com.hue.gulimail.gulimailproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hue.common.utils.PageUtils;
import com.hue.gulimail.gulimailproduct.entity.AttrEntity;
import com.hue.gulimail.gulimailproduct.vo.AttrResVo;
import com.hue.gulimail.gulimailproduct.vo.AttrVo;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 商品属性
 *
 * @author yaofengqiao
 * @email 451737523@qq.com
 * @date 2021-08-12 16:24:48
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryByCatId(Long catId,Map<String,Object> params,int attrType);

    void saveAttrAndGroup(AttrVo attrVo);

    AttrResVo getAttrInfo(Long attrId);

    void updateAttr(AttrResVo attrResVo);

//    List<AttrEntity> getByAttrIds(List<Long> attrValueIds);

    Set<Long> filterAttrIdBySearchType(List<Long> attrValueIds);
}

